package probadores;

import modelo.poligonal.Poligonal;
import modelo.poligonal.Vertice;

public class ProbadorPoligonalPunto {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		Poligonal poligonal;
		
		poligonal = new Poligonal();
		poligonal.inicializarPoligonal();
		
		Vertice v1 = new Vertice();
		v1.setEste((double) 0);
		v1.setNorte((double) 0);

		Vertice v2 = new Vertice();
		v2.setEste((double) 1);
		v2.setNorte((double) 0);
		
		Vertice v3 = new Vertice();
		v3.setEste((double) 1);
		v3.setNorte((double) 1);
		
		Vertice v4 = new Vertice();
		v4.setEste((double) 0);
		v4.setNorte((double) 1);
		
		
		poligonal.agregarVertice(v1);
		poligonal.agregarVertice(v2);
		poligonal.agregarVertice(v3);
		poligonal.agregarVertice(v4);
		poligonal.agregarVertice(v1);
		
		System.out.println( "resultado " + poligonal.verificarPertenencia( (double) .05 ,(double) -.05));
		

	}

}
